// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import React from 'react';
import styled from 'styled-components';

type Props = {
    width?: number;
    height?: number;
    className?: string;
}

const Svg = styled.svg.attrs({
    version: '1.1',
    xmlns: 'http://www.w3.org/2000/svg',
    xmlnsXlink: 'http://www.w3.org/1999/xlink',
})``;

export default (props: Props) => (
    <Svg
        className={props.className}
        width={props.width ? props.width.toString() : '182'}
        height={props.height ? props.height.toString() : '30'}
        viewBox='0 0 182 30'
        fill='none'
        xmlns='http://www.w3.org/2000/svg'
    >
        <path
            fillRule='evenodd'
            clipRule='evenodd'
            d='M69.6495 14.9024C69.6495 14.448 69.5734 14.0782 69.4213 13.7937C69.2695 13.5099 69.0604 13.2868 68.7944 13.1262C68.5284 12.9649 68.2005 12.8557 67.8111 12.7992C67.4215 12.7423 66.9891 12.7139 66.514 12.7139C65.488 12.7139 64.3956 12.9127 63.2364 13.3106C62.9702 12.8179 62.7709 12.3535 62.6381 11.9178C62.5051 11.4821 62.4383 10.961 62.4383 10.3544C63.2745 10.0702 64.1103 9.86184 64.9465 9.72921C65.7824 9.59657 66.5619 9.53008 67.2836 9.53008C69.2598 9.53008 70.8036 10.0037 71.9153 10.9516C73.0268 11.8991 73.5826 13.4147 73.5826 15.4992V24.0265C72.9175 24.2348 72.1099 24.434 71.1598 24.6235C70.2101 24.813 69.1363 24.9078 67.9392 24.9078C66.9702 24.9078 66.0817 24.8224 65.2741 24.6518C64.4667 24.4814 63.7729 24.1969 63.194 23.799C62.6141 23.4015 62.1677 22.8896 61.8538 22.2643C61.5407 21.6387 61.3838 20.8715 61.3838 19.9618C61.3838 19.0524 61.5786 18.2897 61.9681 17.6738C62.3576 17.0581 62.8613 16.5651 63.4785 16.1958C64.0963 15.8262 64.7849 15.561 65.5452 15.3998C66.3052 15.2387 67.0651 15.1582 67.8252 15.1582C68.3763 15.1582 68.9842 15.1869 69.6495 15.2434V14.9024ZM69.6495 17.8302C69.4213 17.7923 69.1744 17.7588 68.9081 17.7307C68.6421 17.7023 68.4051 17.6882 68.1957 17.6882C67.2646 17.6882 66.5282 17.8537 65.9866 18.1854C65.4452 18.517 65.1744 19.0524 65.1744 19.7914C65.1744 20.2843 65.279 20.6629 65.488 20.9285C65.6969 21.1936 65.9489 21.3878 66.2433 21.5108C66.5379 21.6342 66.8511 21.71 67.1837 21.7385C67.5166 21.7666 67.8062 21.7814 68.0529 21.7814C68.3382 21.7814 68.6233 21.7574 68.9081 21.71C69.1934 21.6625 69.4402 21.6202 69.6495 21.582V17.8302ZM76.2809 12.9411H74.4281L74.2853 12.3726L79.6155 5.57913H80.271V9.8711H83.7197C83.7764 10.1556 83.8146 10.4113 83.8339 10.6385C83.8525 10.8662 83.862 11.1029 83.862 11.3495C83.862 11.6146 83.8525 11.8704 83.8339 12.1167C83.8146 12.3633 83.7764 12.638 83.7197 12.9411H80.271V18.7114C80.271 19.2986 80.3188 19.7723 80.4139 20.1326C80.5084 20.4921 80.6463 20.7766 80.8267 20.9852C81.0076 21.1936 81.2306 21.3357 81.4966 21.4114C81.7625 21.4876 82.0764 21.5254 82.437 21.5254C82.7223 21.5254 83.0023 21.5016 83.2781 21.4541C83.5534 21.4069 83.7957 21.3642 84.0046 21.3264C84.138 21.686 84.2325 22.0604 84.2898 22.4491C84.347 22.8375 84.3752 23.1836 84.3752 23.4867C84.3752 23.6951 84.3706 23.8702 84.361 24.0125C84.3515 24.1544 84.3375 24.2923 84.3182 24.4245C83.4443 24.6333 82.5419 24.737 81.6108 24.737C79.8815 24.737 78.5607 24.3346 77.6489 23.5295C76.7369 22.7239 76.2809 21.4114 76.2809 19.5924V12.9411ZM86.9742 12.9411H85.1218L84.9789 12.3726L90.309 5.57913H90.9645V9.8711H94.4132C94.47 10.1556 94.5083 10.4113 94.5274 10.6385C94.546 10.8662 94.5556 11.1029 94.5556 11.3495C94.5556 11.6146 94.546 11.8704 94.5274 12.1167C94.5083 12.3633 94.47 12.638 94.4132 12.9411H90.9645V18.7114C90.9645 19.2986 91.0124 19.7723 91.1071 20.1326C91.2022 20.4921 91.34 20.7766 91.5203 20.9852C91.701 21.1936 91.9239 21.3357 92.1902 21.4114C92.456 21.4876 92.7699 21.5254 93.1304 21.5254C93.4156 21.5254 93.6957 21.5016 93.9716 21.4541C94.247 21.4069 94.4893 21.3642 94.6983 21.3264C94.8313 21.686 94.9262 22.0604 94.983 22.4491C95.0404 22.8375 95.0688 23.1836 95.0688 23.4867C95.0688 23.6951 95.0641 23.8702 95.0545 24.0125C95.0452 24.1544 95.0309 24.2923 95.0118 24.4245C94.1377 24.6333 93.2356 24.737 92.3041 24.737C90.5752 24.737 89.2544 24.3346 88.3424 23.5295C87.4304 22.7239 86.9742 21.4114 86.9742 19.5924V12.9411ZM105.696 15.6418C105.658 14.7318 105.407 13.9977 104.941 13.4387C104.476 12.8796 103.825 12.5998 102.989 12.5998C102.039 12.5998 101.317 12.8653 100.822 13.3958C100.329 13.9265 100.034 14.6751 99.9393 15.6418H105.696ZM99.9105 18.4554C99.9866 19.5924 100.386 20.4167 101.108 20.9285C101.83 21.4402 102.78 21.696 103.958 21.696C104.604 21.696 105.264 21.6342 105.939 21.5108C106.613 21.3878 107.254 21.2125 107.863 20.9852C108.072 21.3642 108.252 21.819 108.404 22.3497C108.556 22.8798 108.641 23.4487 108.661 24.055C107.178 24.6235 105.506 24.9078 103.644 24.9078C102.276 24.9078 101.103 24.7183 100.124 24.3391C99.1457 23.9603 98.3475 23.4342 97.7301 22.7619C97.1125 22.0891 96.6564 21.2884 96.362 20.3597C96.0676 19.4312 95.9205 18.4176 95.9205 17.3188C95.9205 16.2385 96.0723 15.2247 96.3764 14.2772C96.68 13.3293 97.1315 12.5054 97.7301 11.8044C98.3286 11.1029 99.0695 10.5488 99.9533 10.1413C100.837 9.73393 101.868 9.53008 103.046 9.53008C104.072 9.53008 104.984 9.71013 105.782 10.0702C106.58 10.4302 107.259 10.9231 107.82 11.5486C108.38 12.1734 108.803 12.9176 109.088 13.7797C109.373 14.6418 109.516 15.5659 109.516 16.551C109.516 16.9111 109.502 17.2666 109.473 17.6169C109.445 17.9672 109.411 18.247 109.373 18.4554H99.9105ZM111.061 9.8711C111.346 9.8146 111.617 9.77172 111.874 9.74356C112.13 9.71467 112.41 9.70068 112.715 9.70068C113 9.70068 113.28 9.71994 113.555 9.75737C113.831 9.79534 114.102 9.84294 114.367 9.89981C114.425 9.99465 114.477 10.1318 114.524 10.3119C114.572 10.4919 114.614 10.6814 114.653 10.8806C114.691 11.0795 114.724 11.2781 114.752 11.4774C114.781 11.6765 114.804 11.8417 114.824 11.975C115.242 11.3873 115.755 10.8613 116.363 10.3973C116.971 9.93288 117.731 9.70068 118.643 9.70068C118.833 9.70068 119.051 9.71013 119.298 9.72921C119.545 9.7481 119.726 9.77644 119.84 9.8146C119.878 10.0037 119.906 10.2218 119.925 10.4681C119.945 10.7145 119.954 10.9703 119.954 11.2357C119.954 11.5579 119.939 11.9084 119.911 12.2873C119.883 12.6663 119.83 13.0263 119.754 13.3675C119.545 13.3293 119.313 13.3106 119.056 13.3106C118.8 13.3106 118.643 13.3106 118.586 13.3106C118.263 13.3106 117.902 13.3439 117.503 13.41C117.104 13.4765 116.724 13.6516 116.363 13.9361C116.001 14.2203 115.702 14.6467 115.465 15.2154C115.227 15.7835 115.108 16.5795 115.108 17.6029V24.5953C114.767 24.6518 114.425 24.6898 114.082 24.7087C113.741 24.7278 113.408 24.737 113.085 24.737C112.762 24.737 112.434 24.7278 112.101 24.7087C111.769 24.6898 111.422 24.6518 111.061 24.5953V9.8711ZM121.851 9.8711C122.117 9.8146 122.383 9.77172 122.649 9.74356C122.915 9.71467 123.21 9.70068 123.533 9.70068C123.856 9.70068 124.141 9.71467 124.388 9.74356C124.635 9.77172 124.891 9.8146 125.157 9.8711C125.214 9.96594 125.267 10.1035 125.314 10.2835C125.361 10.4634 125.404 10.6533 125.442 10.8518C125.48 11.051 125.513 11.245 125.542 11.4345C125.571 11.624 125.594 11.7852 125.613 11.9178C125.765 11.6338 125.965 11.3495 126.212 11.065C126.459 10.7812 126.753 10.5255 127.095 10.2977C127.437 10.0702 127.822 9.88546 128.25 9.74356C128.677 9.60112 129.157 9.53008 129.689 9.53008C131.988 9.53008 133.461 10.402 134.107 12.1455C134.487 11.4441 135.024 10.8333 135.717 10.3119C136.411 9.79062 137.29 9.53008 138.354 9.53008C140.026 9.53008 141.256 9.99011 142.044 10.9091C142.833 11.8279 143.228 13.2634 143.228 15.2154V24.5668C142.544 24.6805 141.869 24.737 141.204 24.737C140.539 24.737 139.864 24.6805 139.18 24.5668V16.2666C139.18 15.2434 139.052 14.4572 138.795 13.9078C138.539 13.3582 138.021 13.0833 137.242 13.0833C136.919 13.0833 136.601 13.1309 136.288 13.2254C135.974 13.3199 135.689 13.4952 135.432 13.7512C135.176 14.007 134.967 14.3673 134.805 14.8315C134.644 15.2953 134.563 15.8975 134.563 16.6364V24.5668C133.879 24.6805 133.204 24.737 132.539 24.737C131.874 24.737 131.199 24.6805 130.515 24.5668V16.2666C130.515 15.2434 130.387 14.4572 130.131 13.9078C129.874 13.3582 129.357 13.0833 128.578 13.0833C128.255 13.0833 127.932 13.1309 127.608 13.2254C127.286 13.3199 126.996 13.5048 126.739 13.7797C126.482 14.0542 126.278 14.438 126.126 14.9309C125.974 15.4234 125.898 16.0679 125.898 16.8637V24.5668C125.214 24.6805 124.54 24.737 123.875 24.737C123.21 24.737 122.535 24.6805 121.851 24.5668V9.8711ZM151.47 21.8379C152.534 21.8379 153.299 21.4449 153.764 20.6582C154.23 19.872 154.463 18.7396 154.463 17.2617C154.463 15.7835 154.23 14.6514 153.764 13.8649C153.299 13.0782 152.534 12.6852 151.47 12.6852C150.425 12.6852 149.67 13.0782 149.204 13.8649C148.739 14.6514 148.506 15.7835 148.506 17.2617C148.506 18.7396 148.739 19.872 149.204 20.6582C149.67 21.4449 150.425 21.8379 151.47 21.8379ZM151.47 24.9078C150.273 24.9078 149.233 24.7134 148.349 24.325C147.466 23.9367 146.734 23.3965 146.154 22.7047C145.575 22.013 145.138 21.2031 144.844 20.2745C144.549 19.3459 144.402 18.3419 144.402 17.2617C144.402 16.1816 144.549 15.1676 144.844 14.2203C145.138 13.2728 145.575 12.4532 146.154 11.7615C146.734 11.0697 147.466 10.5255 148.349 10.1271C149.233 9.72921 150.273 9.53008 151.47 9.53008C152.667 9.53008 153.712 9.72921 154.605 10.1271C155.498 10.5255 156.239 11.0697 156.829 11.7615C157.418 12.4532 157.854 13.2728 158.14 14.2203C158.425 15.1676 158.567 16.1816 158.567 17.2617C158.567 18.3419 158.425 19.3459 158.14 20.2745C157.854 21.2031 157.418 22.013 156.829 22.7047C156.239 23.3965 155.498 23.9367 154.605 24.325C153.712 24.7134 152.667 24.9078 151.47 24.9078ZM162.963 18.1713C161.899 17.8678 161.068 17.418 160.469 16.821C159.871 16.2243 159.571 15.3288 159.571 14.1347C159.571 12.6945 160.089 11.5675 161.125 10.7526C162.16 9.9376 163.571 9.53008 165.357 9.53008C166.098 9.53008 166.83 9.59657 167.552 9.72921C168.274 9.86184 169.006 10.0606 169.746 10.3262C169.708 10.8186 169.613 11.3302 169.461 11.8611C169.31 12.3915 169.129 12.8557 168.92 13.2541C168.464 13.0644 167.961 12.8985 167.409 12.7563C166.859 12.6144 166.279 12.5433 165.671 12.5433C165.025 12.5433 164.522 12.6427 164.16 12.8417C163.799 13.0408 163.619 13.3582 163.619 13.7937C163.619 14.2107 163.747 14.5045 164.003 14.6751C164.26 14.8455 164.626 15.007 165.101 15.1582L166.725 15.6418C167.258 15.7932 167.737 15.9778 168.165 16.1958C168.592 16.4138 168.958 16.6838 169.262 17.0057C169.566 17.3279 169.804 17.7259 169.974 18.1996C170.146 18.6734 170.231 19.2512 170.231 19.9332C170.231 20.6347 170.084 21.2884 169.789 21.8947C169.495 22.5012 169.067 23.027 168.507 23.4721C167.946 23.9178 167.267 24.2683 166.469 24.5239C165.671 24.7799 164.768 24.9078 163.761 24.9078C163.305 24.9078 162.887 24.8935 162.507 24.8651C162.127 24.8364 161.762 24.7892 161.41 24.723C161.058 24.6565 160.712 24.5762 160.37 24.4814C160.028 24.3867 159.657 24.2636 159.258 24.1118C159.296 23.6 159.386 23.0837 159.529 22.5628C159.671 22.0419 159.857 21.5346 160.085 21.0419C160.712 21.2884 161.306 21.473 161.866 21.5962C162.427 21.7196 163.011 21.7814 163.619 21.7814C163.885 21.7814 164.175 21.7574 164.488 21.71C164.802 21.6625 165.091 21.5773 165.357 21.4541C165.624 21.331 165.847 21.1698 166.027 20.971C166.208 20.7721 166.298 20.5116 166.298 20.1891C166.298 19.7347 166.16 19.4076 165.885 19.2087C165.609 19.0099 165.224 18.834 164.731 18.6827L162.963 18.1713ZM172.821 12.9411H170.969L170.826 12.3726L176.156 5.57913H176.811V9.8711H180.26C180.317 10.1556 180.355 10.4113 180.375 10.6385C180.393 10.8662 180.403 11.1029 180.403 11.3495C180.403 11.6146 180.393 11.8704 180.375 12.1167C180.355 12.3633 180.317 12.638 180.26 12.9411H176.811V18.7114C176.811 19.2986 176.859 19.7723 176.954 20.1326C177.049 20.4921 177.187 20.7766 177.367 20.9852C177.548 21.1936 177.771 21.3357 178.037 21.4114C178.303 21.4876 178.617 21.5254 178.978 21.5254C179.263 21.5254 179.543 21.5016 179.819 21.4541C180.094 21.4069 180.336 21.3642 180.545 21.3264C180.678 21.686 180.774 22.0604 180.83 22.4491C180.888 22.8375 180.916 23.1836 180.916 23.4867C180.916 23.6951 180.911 23.8702 180.902 24.0125C180.892 24.1544 180.878 24.2923 180.859 24.4245C179.985 24.6333 179.083 24.737 178.151 24.737C176.422 24.737 175.102 24.3346 174.189 23.5295C173.278 22.7239 172.821 21.4114 172.821 19.5924V12.9411ZM39.2629 5.37164C40.0865 5.25736 40.8788 5.19995 41.6403 5.19995C42.4432 5.19995 43.2359 5.25736 44.018 5.37164L49.1127 15.9173L54.3617 5.37164C54.9998 5.25736 55.7096 5.19995 56.4921 5.19995C57.2744 5.19995 58.0253 5.25736 58.746 5.37164L59.7957 24.7363C59.0138 24.8508 58.2727 24.9078 57.573 24.9078C56.8727 24.9078 56.1835 24.8508 55.5043 24.7363L54.9483 10.7354L50.4402 20.4122C50.1518 20.4503 49.8536 20.4841 49.5446 20.5123C49.2358 20.541 48.9274 20.5552 48.6184 20.5552C48.3506 20.5552 48.0833 20.5457 47.8159 20.5266C47.5483 20.5076 47.2705 20.4692 46.9821 20.4122L42.783 10.5348L42.3507 24.7363C41.6921 24.8508 41.0539 24.9078 40.4361 24.9078C39.7774 24.9078 39.0978 24.8508 38.3984 24.7363L39.2629 5.37164Z'
            fill='#1E325C'
        />
        <path
            fillRule='evenodd'
            clipRule='evenodd'
            d='M20.1373 12.2575C20.1373 12.2575 20.1838 14.3044 18.7644 15.695C17.3448 17.0856 15.6012 16.9585 14.467 16.5745C13.3326 16.1905 11.8704 15.2323 11.5873 13.2655C11.3045 11.2986 12.5848 9.70069 12.5848 9.70069L15.3747 6.23118L16.9996 4.24963L18.3944 2.52282C18.3944 2.52282 19.0345 1.66544 19.2169 1.48849C19.2531 1.45342 19.2901 1.43042 19.3265 1.4127L19.3529 1.39919L19.3577 1.39736C19.4344 1.36431 19.5228 1.35719 19.6081 1.38604C19.6915 1.41435 19.7562 1.47169 19.7971 1.54236L19.8056 1.55605L19.8131 1.57176C19.833 1.60938 19.8496 1.65229 19.8575 1.70525C19.8948 1.95671 19.8825 3.02665 19.8825 3.02665L19.9415 5.24543L20.0286 7.8066L20.1373 12.2575ZM23.7488 2.86301C28.9088 6.61849 31.2753 13.4339 29.1235 19.8082C26.4751 27.653 17.9863 31.8597 10.1633 29.2041C2.34031 26.5484 -1.85455 18.0361 0.79367 10.1914C2.9491 3.80658 8.97324 -0.167855 15.3585 0.00544665L13.3118 2.43039C9.52375 3.11721 6.25309 5.71126 4.96759 9.51933C3.05491 15.185 6.26074 21.3926 12.1281 23.3842C17.9952 25.376 24.3022 22.3977 26.2149 16.7321C27.4962 12.9366 26.4802 8.89825 23.9063 6.04672L23.7488 2.86301Z'
            fill='#1E325C'
        />
    </Svg>
);
